package com.longtop.framework.sys.file.excel;

import java.util.Map;

import com.longtop.framework.common.Constant;
import com.longtop.framework.common.Message;
import com.longtop.framework.util.UniqueKeyUtil;

public class ExcelBean {
	private boolean pagin = false;
	private String sheetName = "sheet";
	private String outPutName;
	/**
	 * 上传文件的存放地址：在config/common/applicationMessage.properties里可配置：export.filepath
	 */
	private String path = "";
	private String downloadExcelName;
	private int pageSize = 30;
	private Map<String, Map<String, String>> params;
	private Map<String, Object> excelHeadMap;
	private Map<String, Integer> groupColumn;

	public ExcelBean() {
		path = Message.getMessage(Constant.EXPORT_PATH);

		outPutName = UniqueKeyUtil.getUuidKey();
		downloadExcelName = UniqueKeyUtil.getUuidKey();
	}

	public ExcelBean(String outPutName, String downloadExcelName) {
		path = Message.getMessage(Constant.EXPORT_PATH);
		this.outPutName = outPutName;
		this.downloadExcelName = downloadExcelName;
	}

	public Map<String, Object> getExcelHeadMap() {
		return excelHeadMap;
	}

	public void setExcelHeadMap(Map<String, Object> excelHeadMap) {
		this.excelHeadMap = excelHeadMap;
	}

	public String getSheetName() {
		return sheetName;
	}

	public void setSheetName(String sheetName) {
		this.sheetName = sheetName;
	}

	public String getOutPutName() {
		return outPutName;
	}

	public void setOutPutName(String outPutName) {
		this.outPutName = outPutName;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public boolean isPagin() {
		return pagin;
	}

	public void setPagin(boolean pagin) {
		this.pagin = pagin;
	}

	public Map<String, Map<String, String>> getParams() {
		return params;
	}

	public void setParams(Map<String, Map<String, String>> params) {
		this.params = params;
	}

	public String getDownloadExcelName() {
		return downloadExcelName;
	}

	public void setDownloadExcelName(String downloadExcelName) {
		this.downloadExcelName = downloadExcelName;
	}

	public Map<String, Integer> getGroupColumn() {
		return groupColumn;
	}

	public void setGroupColumn(Map<String, Integer> groupColumn) {
		this.groupColumn = groupColumn;
	}

}
